package thread;

/**
 *  @author Anitta
 *  SaveThread class implements Runnable and we use SaveThread object to save the list of employees in file. 
 *  It uses write function from Functions Class.
 */
import java.util.List;

import classes.Employee;
import facadeDesignPattern.Functions;

public class SaveThread implements Runnable {

	public List<Employee> employeeList;
	Functions f = new Functions();

	public void run() {
		try {
			f.write(employeeList);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
